Skip to content

fix: save optional config fields (lang, scope, type, ignore_patterns) - #9

Merged
vavasilva merged 1 commit into
mainfrom
fix/save-optional-config
Jan 5, 2026
Merged

fix: save optional config fields (lang, scope, type, ignore_patterns)#9
vavasilva merged 1 commit into
mainfrom
fix/save-optional-config

Conversation

@vavasilva

Copy link
Copy Markdown
Owner

Summary

Fix saveConfig to persist optional fields when using config --set.

Problem

When setting optional fields like lang, scope, type, or ignore_patterns, they were not being saved to the config file.

$ git-commit-ai config --set lang=en
✓ Config updated: lang (default_language) = "en"

# But the file didn't contain default_language!

Solution

Updated saveConfig to append optional fields when they are set:

  • default_language
  • default_scope
  • default_type
  • ignore_patterns

Test

$ git-commit-ai config --set lang=en
✓ Config updated: lang (default_language) = "en"

$ git-commit-ai config
Configuration:
  ...
  Default language: en
  ...

🤖 Generated with Claude Code

…ature, retry temperatures, default language, default scope, and default type
@vavasilva
vavasilva merged commit 6d97c41 into main Jan 5, 2026
3 checks passed
@vavasilva
vavasilva deleted the fix/save-optional-config branch January 5, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant